package com.boot.hospital.score.dao.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;

@Data
@Slf4j
public class CadreAndScore {

    private Integer cadresId;
    private String dept;
    private String position;
    private String cadresName;
    private String introduction;
    private String memo;
    private String description;
    private Integer orders;
    private String gender;
    private String birth;
    private String nation;
    private String party;
    private String joinTime;
    private String title;
    private String dutyTime;
    private String getTime;
    private String publishTime;
    private String teachingTitle;
    private String duties;
    private String education;
    private String degree;
    private String graduation;
    private String major;
    private String graduateTime;
    private String nativePlace;
    private String cadresNumber;
    private Integer reviewId;


    private Integer scoreId;
    private String expertId;
    private String score;
    private Date reviewDate;
    private String reviewText;

    public CadreAndScore(Cadre cadre, Score mScore) {

        scoreId = mScore.getScoreId();
        expertId = mScore.getExpertId();
        score = mScore.getScore();
        reviewDate = mScore.getReviewDate();
        reviewText = mScore.getReviewText();

        cadresId = cadre.getCadresId();
        dept = cadre.getDept();
        position = cadre.getPosition();
        cadresName = cadre.getCadresName();
        introduction = cadre.getIntroduction();
        memo = cadre.getMemo();
        description = cadre.getDescription();
        orders = cadre.getOrders();
        gender = cadre.getGender();
        birth = cadre.getBirth();
        nation = cadre.getNation();
        party = cadre.getParty();
        joinTime = cadre.getJoinTime();
        title = cadre.getTitle();
        dutyTime = cadre.getDutyTime();
        getTime = cadre.getGetTime();
        publishTime = cadre.getPublishTime();
        teachingTitle = cadre.getTeachingTitle();
        duties = cadre.getDuties();
        education = cadre.getEducation();
        degree = cadre.getDegree();
        graduation = cadre.getGraduation();
        major = cadre.getMajor();
        graduateTime = cadre.getGraduateTime();
        nativePlace = cadre.getNativePlace();
        cadresNumber = cadre.getCadresNumber();
        reviewId = cadre.getReviewId();

    }

    public CadreAndScore() {


    }
}
